package com.bt7274.pojo;

import java.io.Serializable;

/**
 * <p>
 * 权限组表：用于规定用户权限
 * </p>
 *
 * @author hp
 * @since 2025-03-25
 */
public class Permission implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;

    /**
     * 组名
     */
    private String name;

    /**
     * 是否允许发种
     */
    private Integer canUpload;

    /**
     * 是否允许下载
     */
    private Integer canDownload;

    /**
     * 最大同时做种数量
     */
    private Integer maxTorrents;

    /**
     * 发种免审核
     */
    private Integer auditFree;

    /**
     * 名人堂展示
     */
    private Integer canShow;

    /**
     * 兑换邀请
     */
    private Integer canInvite;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getCanUpload() {
        return canUpload;
    }

    public void setCanUpload(Integer canUpload) {
        this.canUpload = canUpload;
    }

    public Integer getCanDownload() {
        return canDownload;
    }

    public void setCanDownload(Integer canDownload) {
        this.canDownload = canDownload;
    }

    public Integer getMaxTorrents() {
        return maxTorrents;
    }

    public void setMaxTorrents(Integer maxTorrents) {
        this.maxTorrents = maxTorrents;
    }

    public Integer getAuditFree() {
        return auditFree;
    }

    public void setAuditFree(Integer auditFree) {
        this.auditFree = auditFree;
    }

    public Integer getCanShow() {
        return canShow;
    }

    public void setCanShow(Integer canShow) {
        this.canShow = canShow;
    }

    public Integer getCanInvite() {
        return canInvite;
    }

    public void setCanInvite(Integer canInvite) {
        this.canInvite = canInvite;
    }

    @Override
    public String toString() {
        return "Permission{" +
        "id = " + id +
        ", name = " + name +
        ", canUpload = " + canUpload +
        ", canDownload = " + canDownload +
        ", maxTorrents = " + maxTorrents +
        ", auditFree = " + auditFree +
        ", canShow = " + canShow +
        ", canInvite = " + canInvite +
        "}";
    }
}
